package com.example.mcpserve.config;

import com.example.mcpserve.service.StudentSerivce;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: ToolCallbackProviderConfig
 * @Description:
 * @Author: YourName
 * @Date: 2025/11/6
 */
@Configuration
public class ToolCallbackProviderConfig {
    @Bean
    public ToolCallbackProvider gzhRecommendTools(StudentSerivce studentSerivce) {
        return MethodToolCallbackProvider.builder().toolObjects(studentSerivce).build();
    }
}
